import request from '@/utils/request';
//领券中心
export const couponTemplatePage = (params: any) => {
    return request({
        url: '/app-api/promotion/coupon-template/page',
        method: 'GET',
        body: params,
        hideLoading: false,
    });
};
//我的优惠劵
export const couponPage = (params: any) => {
    return request({
        url: '/app-api/promotion/coupon/page',
        method: 'GET',
        body: params,
        hideLoading: false,
    });
};
//领取优惠劵
export const couponTake = (params: any) => {
    return request({
        url: '/app-api/promotion/coupon/take',
        method: 'POST',
        body: params,
        hideLoading: false,
    });
};
//获得匹配指定商品的优惠劵列表
export const couponMatchList = (params: any) => {
    return request({
        url: '/app-api/promotion/coupon/match-list',
        method: 'POST',
        body: params,
        hideLoading: false,
    });
};
